<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="common/taglib.jsp" %>
<!DOCTYPE html>
<html>
<!-- Mirrored from www.zi-han.net/theme/hplus/clients.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:44 GMT -->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 客户管理</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    <jsp:include page="common/header.jsp"></jsp:include>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-content">
                        <h2>商品管理</h2>
                        <p><a href="${pageContext.request.contextPath }/sys/goods/toAdd" class="btn btn btn-primary">添加商品</a></p>
                       <form action="${pageContext.request.contextPath }/sys/goods/list" id="searchForm">
	                       	 <div class="input-group">
	                            <input type="text" placeholder="查找分类" class="input form-control">
	                            <span class="input-group-btn">
	                                     <button type="submit" class="btn btn btn-primary"> <i class="fa fa-search"></i> 搜索</button>
	                             </span>
	                        </div>
                       </form>
                        <div class="clients-list">
                            <div class="full-height-scroll">
                                <div class="table-responsive">
                                    <table class="table table-striped table-hover">
                                    <tr>
                                    	<th>商品序列号</th>
                                    	<th>商品名称</th>
                                    	<th>分类名称</th>
                                    	<th>商品数量</th>
                                    	<th>商品售价</th>
                                    	<th>商品原价</th>
                                    	<th>创建时间</th>
                                    	<th>操作</th>
                                    </tr>
                                    <c:forEach items="${pageInfo.list }" var="good">
                                    <tr>
                                    	<td>${good.goodsSn }</td>
                                    	<td>${good.name }</td>
                                    	<td>${good.categoryParentName }-${good.categoryName }</td>
                                    	<td>${good.goodsNumber }</td>
                                    	<td>${good.retailPrice }</td>
                                    	<td>${good.marketPrice }</td>
                                    	<td><fmt:formatDate value="${good.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                                    	<td>
                                    	 <a href="${pageContext.request.contextPath }/sys/goods/get/${good.id}" class="cate-upd"><span class="label label-primary">编辑</span></a>
                                         <a href="${pageContext.request.contextPath }/sys/goods/del/${good.id}" class="cate-del"><span class="label label-warning">删除</span></a>
                                    	</td>
                                    	</tr>
                                    </c:forEach>
                                    </table>
                                </div>
                                <jsp:include page="common/rollpage.jsp"></jsp:include>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <jsp:include page="common/footer.jsp"></jsp:include>
    <script>
        $(function(){$(".full-height-scroll").slimScroll({height:"100%"})});
    </script>
</body>
</html>
